﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProtectedConfigUI.aspx.cs" Inherits="ThangNM.Admin.ProtectedConfigUI" MasterPageFile="~/PublicInterface/Admin.Master" %>
<%@ Register src="~/UserControl/MsgUC.ascx" tagname="MsgUC" tagprefix="uc1" %>

<asp:Content ID="cHead" runat="server" ContentPlaceHolderID="cphHead">
</asp:Content>
<asp:Content ID="cBody" runat="server" ContentPlaceHolderID="cphBody">
    <uc1:MsgUC ID="MsgUC1" runat="server" />
    <asp:Panel ID="pnlMain" runat="server"><br /><br />
        - <asp:Label ID="lbl1" runat="server"></asp:Label><br />
        - <asp:Label ID="lbl2" runat="server"></asp:Label><br />
        - <asp:Label ID="lbl3" runat="server"></asp:Label><br />
        - <asp:Label ID="lbl4" runat="server"></asp:Label><br />
        - <asp:Label ID="lbl5" runat="server"></asp:Label><br /><br />

        <asp:Button ID="btnClearCache" runat="server" Text="Clear Cache" 
            class="btn btn-danger btn-sm" 
            OnClientClick="return confirm('Bạn chắc chắc muốn xóa cache không?');" 
            onclick="btnClearCache_Click"/>
        <asp:Button ID="btnOK" runat="server" Text="OK" onclick="btnOK_Click" />

        <asp:Button ID="btnDisableJob" runat="server" Text="Disable Job" onclick="btnDisableJob_Click" />
        <asp:Button ID="btnGetRootPath" runat="server" Text="GetRootPath" onclick="btnGetRootPath_Click" />
        <%--<div align="center">
        <span style="font-weight: bold">Encrypt or decrypt connectionString</span> <br/><br/>
        <asp:DropDownList ID="cmdProvider" runat="server">
        <asp:ListItem>RSAProtectedConfigurationProvider</asp:ListItem>
        <asp:ListItem>DataProtectionConfigurationProvider</asp:ListItem>
        </asp:DropDownList> <br/>
        <asp:Button id="btnEncrypt" runat="server" Text="Encrypt" onclick="btnEncrypt_Click" /> &nbsp;
        <asp:Button ID="btnDecrypt" runat="server" Text="Decrypt" onclick="btnDecrypt_Click" />
        </div>
        <div align="center"><asp:Label runat="server" ID="lblConnectionString"></asp:Label></div>--%>
        
        <asp:UpdatePanel ID="udpJob" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="divItemCheckBox">
                <span>Bật/tắt job: </span>
                <asp:CheckBox ID="chkOnOffJob" runat="server" Text="&nbsp;" AutoPostBack="True" oncheckedchanged="chkOnOffJob_CheckedChanged"/>
            </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
</asp:Content>
